package com.ktjy.entity;

/**
 * @author 黄军艳
 * @version 1.0
 * @date 2024/12/2  10:30
 */
public class Employee {
    private String name;
    private int age;
    private String post; //岗位

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getPost() {
        return post;
    }

    public void setPost(String post) {
        this.post = post;
    }

    public void info(){
        System.out.println("大家好，我是"+this.post+"岗位的"+this.name+"，今年"+this.age+"岁。");
    }
}
